<?php

/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/
/**
 * Description of Answer
 *
 * @author hoangle
 */
class Faq {

    private $db;
    
    public function  __construct() {
        $this->db = Zend_Registry::get('db');
    }

    /**
     * @desc Get FAQ
     * @param <string> $desc
     * @return <bool> true else false | NULL
     */
    public function getFaq($desc) {
        try {
            $sql = "SELECT * FROM tblfaqs WHERE id=1";
            $stmt = $this->db->prepare($sql);
            $stmt->execute();
            $rows = $stmt->fetch();
            $stmt->closeCursor();
        }
        catch (Zend_Db_Exception $e) {
            throw new Zend_Exception($e);
        }
        return $rows;
    }

}

?>
